package CtrLayer;

import java.util.ArrayList;

import DataLayer.Model.DelOrdre;
import DataLayer.Model.Produkt;

public interface IFButikCtr
{
	// Create an empty ButikOrdre
	public void startButikOrdre();

	// Set ButikOrdre
	public void setButikOrdre(int ordreId);

	// Set customer
	public void setButikOrdreKunde(int kundeId);

	// Get all products
	public ArrayList<Produkt> getAllProdukt(boolean synlig);

	// Get all added products
	public ArrayList<DelOrdre> getAllDelOrdre();

	// Add selected product to order
	public void addProdukt(int antal, Produkt p);

	// Get part order by part order id
	public DelOrdre getDelOrdre(int delOrdreId);

	// Update a product line
	public void updateProduktAntal(int delOrdreId, int antal, int produktId);

	// Remove a product from order
	public void removeProdukt(int delOrdreId);

	// Insert the order into the database.
	public void commitButikOrdre() throws Exception;
}